package com.ssy.lingxi.report.entity.report;

import javax.persistence.*;
import java.io.Serializable;

/**
 * 手机端常用App
 * @author 伍将
 * @date 2021/3/2
 * @version 2.0.0
 */
@Entity
@Table(schema = "public", name = "rep_mobile_commonly_used_app",
        indexes = {@Index(name = "rep_mobile_commonly_used_app_member_idx", columnList = "memberId,roleId")})
public class MobileCommonlyUsedAppDO implements Serializable {

    private static final long serialVersionUID = -4122415543644161107L;
    /**
     * id
     */
    @Id
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "mobile_commonly_used_app_seq")
    @SequenceGenerator(sequenceName = "rep_mobile_commonly_used_app_seq", name = "mobile_commonly_used_app_seq", allocationSize = 1)
    private Long id;

    /**
     * 商户id
     */
    @Column(columnDefinition = "int8")
    private Long memberId;

    /**
     * 商户角色id
     */
    @Column(columnDefinition = "int8")
    private Long roleId;

    /**
     * 应用枚举
     * 参考：MobileAppMenuEnum
     */
    @Column(columnDefinition = "int2")
    private Integer appEnum;

    /**
     * 排序：越小越靠前
     */
    @Column(columnDefinition = "int2")
    private Integer sort;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getMemberId() {
        return memberId;
    }

    public void setMemberId(Long memberId) {
        this.memberId = memberId;
    }

    public Long getRoleId() {
        return roleId;
    }

    public void setRoleId(Long roleId) {
        this.roleId = roleId;
    }

    public Integer getAppEnum() {
        return appEnum;
    }

    public void setAppEnum(Integer appEnum) {
        this.appEnum = appEnum;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }
}
